package com.sample.dubbo.demo.provider;

import com.sample.dubbo.demo.provider.config.ProviderDubboConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.concurrent.CountDownLatch;

public class ProviderApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.register(ProviderDubboConfiguration.class);
        ctx.refresh();
        ctx.start();

        // always wait
        CountDownLatch latch = new CountDownLatch(1);
        try {
            latch.await();
        } catch (InterruptedException e) {
        }
    }
}
